package com.example.service.impl;

import com.example.dao.productdao;
import com.example.entity.Product;
import com.example.service.productservice;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service("productService")
public class productserviceimpl implements productservice {
    @Resource
    private productdao productDao;



    /**
     * 新增数据
     *
     * @param product 实例对象
     * @return 实例对象
     */
    @Override
    public int insert(Product product) {
        return this.productDao.insert(product);
    }


}
